<template>
    子组件A：{{student.name}}<br>
    <childb></childb>
</template>
<script>
import { inject } from 'vue'
import childb from './childreB'
export default {
    components:{
        childb
    },
    setup() { 
       const student=inject('info')  
       return{
           student
       }
    }
    
}
</script>
